﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RBAC.MaHaiBo.Entity;
using RBAC.MaHaiBo.Entity.Traceability;

namespace RBAC.MaHaiBo.Service.TraceabilityService
{
    public interface ITracingService
    {
        /// <summary>
        /// 显示商品名称
        /// </summary>
        /// <returns>返回商品列表</returns>
        Task<List<Commodity>>GetCommodities();

        /// <summary>
        /// 添加溯源
        /// </summary>
        /// <param name="tracing">要添加的信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddTracing(Tracing tracing);

        /// <summary>
        /// 显示溯源列表
        /// </summary>
        /// <returns></returns>
        Task<FenYeDTO<TracingDTO>> GetTracing(int pageiden,int pageSzen,string CommodityName);

        /// <summary>
        /// 反填数据信息
        /// </summary>
        /// <param name="Tracingid">编号</param>
        /// <returns>返回数据信息</returns>
        Task<List<TracingDTO>> Tracinginfo(int Tracingid);

        /// <summary>
        /// 修改溯源信息
        /// </summary>
        /// <param name="tracing">效果后溯源信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdTracing(Tracing tracing);

        /// <summary>
        /// 删除溯源信息
        /// </summary>
        /// <param name="Ids">要删除的数据信息集合</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DelTracing(List<int> Ids);
       
    }
}
